package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import com.freight.core.common.utils.SnowFlakeUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "order_quotation_record")
@TableName("order_quotation_record")
@ApiModel(value = "报价记录表")
public class QuotationRecord  extends FreightBaseEntity {

    @ApiModelProperty(value = "报价编号")
    private String quotationNo = String.valueOf(SnowFlakeUtil.nextId());

    @ApiModelProperty(value = "货源Id")
    private Long orderGoodsId;

    @ApiModelProperty(value = "司机报价记录Id")
    private Long recordId;

    @ApiModelProperty(value = "报价人Id")
    private Long userId;

    @ApiModelProperty(value = "关联订单id")
    private Long orderId;

    @ApiModelProperty(value = "司机状态 1已报价 2已委托 3已取消")
    private String driverState;

    @ApiModelProperty(value = "运单来源 1自主抢单  2平台派单")
    private String orderSource;

}
